package com.greenline.pay.web.common.pipeline;

import javax.servlet.http.HttpServletRequest;

import com.greenline.framework.mursi.web.module.security.AuthorizationModule;
import com.greenline.gops.client.auth.AbstractAuthorizationValve;
import com.greenline.pay.web.common.cookie.UserCookieUtil;

public class AuthorizationValve extends AbstractAuthorizationValve implements AuthorizationModule {

    @Override
    public Long getUserId(HttpServletRequest request) {
        return UserCookieUtil.getUserId(request);
    }

//    @Override
//    public AuthorizationResult isPermitted(HttpServletRequest request, HttpServletResponse response) {
//        AuthorizationResult result = new AuthorizationResult();
//        result.setResult(ResultEnum.OK);
//        Long id = UserCookieUtil.getUserId(request);
//        return result;
//    }


}
